<template>
  <div class="custom-empty_box">
    <img :src="require('@/assets/imgs/emptyBox/'+imgName+'.png')" alt="">
    <div>{{ tipText }}</div>
  </div>
</template>

<script>
// 空状态
export default {
  props: {
    imgName: {
      type: String,
      default: 'default'
    },
    tipText: {
      type: String,
      default: '暂无相关数据'
    }
  }
};
</script>

<style lang="scss" scoped>
.custom-empty_box {
    padding: 30px 0;
    text-align: center;
    font-size: 12px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: rgba(122, 128, 147,.8);
    line-height: 28px;
    img{
      width: 160px;
      height: 120px;
    }
  }
</style>
